package com.mjk.manager.workflow.component;

import com.mjk.common.tools.gson.GsonUtils;
import com.mjk.manager.workflow.component.dto.BeeLiteFlowContext;
import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeComponent;

/**
 * 默认工作流 用于没有配置时候的默认工作
 * 作用是 规避启动报错
 */
@LiteflowComponent(value = "default")
public class DefaultWorkFlow extends NodeComponent {
    @Override
    public void process() {
        BeeLiteFlowContext dto = this.getContextBean(BeeLiteFlowContext.class);
        dto.setData("method","bbb");
        dto.setData("info",GsonUtils.bean2Json(dto));
        System.out.println("default");
        //do noting
    }
}
